<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/manage/commons/taglibs.jsp" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <title>迁移工具执行状态/迁移进度</title>
    <jsp:include page="/WEB-INF/include/head.jsp"/>
    <script type="text/javascript">
        $(document).ready(function(){
            var process = document.getElementById("process").value;
            alert(process);
            window.close();
        })
    </script>

</head>
<c:choose>
    <c:when test="${process == null}">
        <body role="document">
        <div class="container">
            <jsp:include page="/WEB-INF/include/headMenu.jsp"/>
            <div id="systemAlert">
            </div>

            <div class="row">
                <div class="col-md-12">
                    <div class="page-header">
                        <h3>迁移工具执行状态</h3>
                    </div>
                </div>
            </div>
            <div class="row">
                <c:forEach items="${migrateToolStatMap}" var="entry">
                    <div class="col-md-12">
                        <div class="page-header">
                            <h4>${entry.key}</h4>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <table class="table table-striped table-hover" style="margin-top: 0px">
                            <thead>
                            <tr>
                                <td>key</td>
                                <td>value</td>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${entry.value}" var="entry2">
                                <tr>
                                    <td>${entry2.key}</td>
                                    <td>${entry2.value}</td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                    </div>
                </c:forEach>
            </div>

        </div>
        <br/><br/><br/><br/><br/><br/><br/>
        <jsp:include page="/WEB-INF/include/foot.jsp"/>
        </body>
    </c:when>
    <c:otherwise>
        <body role="document">
        <input type="hidden" name="process" id="process" value="${process}">
        </body>
    </c:otherwise>
</c:choose>
</html>

